﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Objects;
using System.Data.Objects.DataClasses;
using System.Data.EntityClient;
using System.ComponentModel;
using System.Xml.Serialization;
using System.Runtime.Serialization;

namespace AudiPyme.DAL
{
    public partial class Controles : EntityObject
    {
        public Controles(int IdControl, int IdObjControl, String Codigo, String Nombre, String Descripcion,int NivelMadurez):base()
        {
            this.IdControl=IdControl;
            this.IdObjControl=IdObjControl;
            this.Codigo=Codigo;
            this.Nombre=Nombre;
            this.Descripcion=Descripcion;
            this.NivelMadurez = NivelMadurez;
        }
        public Controles(): base()
        {

        }
        public override bool Equals(object obj)
        {
            if (obj == null || GetType() != obj.GetType())
                return false;
            Controles controlEquals = (Controles)obj;
            return IdControl==controlEquals.IdControl && IdObjControl==controlEquals.IdObjControl &&
                   Codigo == controlEquals.Codigo && Nombre == controlEquals.Nombre && Descripcion == controlEquals.Descripcion
                   && NivelMadurez == controlEquals.NivelMadurez;
        }
    }
}
